/*
 * Copyright 2013 Alibaba.com All right reserved. This software is the
 * confidential and proprietary information of Alibaba.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Alibaba.com.
 */
package com.madding.shared.encrypt.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 类LogAgg.java的实现描述：日志聚合
 * 
 * @author madding.lip Nov 25, 2013 2:17:28 PM
 */
public class LogAgg {

    private static final String FALSE_LOG_FORMAT = "false:[%s]:[%s]";
    private static final String TRUE_LOG_FORMAT  = "true:[%s]:[%s]";

    public static final String  COLON_SEP        = ":";

    public static String getTrueMsg(String data, String msg) {
        return String.format(TRUE_LOG_FORMAT, data, msg);
    }

    public static String getFalseMsg(String data, String msg) {
        return String.format(FALSE_LOG_FORMAT, data, msg);
    }

    public static final Logger dcrs  = LoggerFactory.getLogger("default_cert_read_service");

    public static final Logger dcws  = LoggerFactory.getLogger("default_cert_write_service");

    public static final Logger dnds  = LoggerFactory.getLogger("default_net_device_service");

    public static final Logger dtds  = LoggerFactory.getLogger("default_trust_device_service");

    public static final Logger dtdrs = LoggerFactory.getLogger("default_trust_device_read_service");

    public static final Logger dtdws = LoggerFactory.getLogger("default_trust_device_write_service");

    public static final Logger duos  = LoggerFactory.getLogger("default_umid_op_service");

    public static final Logger dids  = LoggerFactory.getLogger("default_it_dhcp_service");

    public static final Logger comp  = LoggerFactory.getLogger("cert_op_manager_profile");

    public static final Logger pacs  = LoggerFactory.getLogger("page_apply_cert_service");

    public static final Logger idm   = LoggerFactory.getLogger("it_dhcp_manager");

    public static final Logger uom   = LoggerFactory.getLogger("umid_op_manager");

    public static final Logger com   = LoggerFactory.getLogger("cert_op_manager");

    public static final Logger util  = LoggerFactory.getLogger("util");

    public static final Logger cert  = LoggerFactory.getLogger("cert");
}
